// 经营分析组件独立配置
export const BusinessAnalysisConfig = {
    // 图表容器配置
    container: {
        height: {
            desktop: 450,
            tablet: 400,
            mobile: 350
        },
        padding: '20px'
    },

    // 转化率漏斗图配置
    conversionFunnel: {
        title: {
            text: '预约转化漏斗分析',
            fontSize: 16,
            fontWeight: 'bold',
            color: '#303133'
        },
        funnel: {
            width: '70%',
            height: '75%',
            left: '15%',
            top: 60,
            gap: 2,
            label: {
                fontSize: 13,
                color: '#fff',
                position: 'inside'
            }
        },
        colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de'],
        data: [
            { value: 100, name: '浏览服务' },
            { value: 85, name: '选择服务' },
            { value: 72, name: '选择技师' },
            { value: 68, name: '确认预约' },
            { value: 65, name: '完成支付' }
        ]
    },

    // 技师产能利用率排行榜配置
    utilizationRanking: {
        title: {
            text: '技师产能利用率TOP10',
            fontSize: 16,
            fontWeight: 'bold',
            color: '#303133'
        },
        grid: {
            left: '8%',
            right: '8%',
            bottom: '15%',
            top: '15%',
            containLabel: true
        },
        bar: {
            width: '60%',
            label: {
                fontSize: 11,
                position: 'right',
                distance: 5
            }
        },
        colors: ['#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc', '#5470c6', '#91cc75'],
        data: [
            { name: '技师1号', value: 95 },
            { name: '技师2号', value: 88 },
            { name: '技师3号', value: 82 },
            { name: '技师4号', value: 78 },
            { name: '技师5号', value: 75 },
            { name: '技师6号', value: 72 },
            { name: '技师7号', value: 68 },
            { name: '技师8号', value: 65 },
            { name: '技师9号', value: 62 },
            { name: '技师10号', value: 58 }
        ]
    },

    // 营收趋势图配置
    revenueTrend: {
        title: {
            text: '门店营收趋势',
            fontSize: 16,
            fontWeight: 'bold',
            color: '#303133'
        },
        grid: {
            left: '8%',
            right: '8%',
            bottom: '15%',
            top: '15%',
            containLabel: true
        },
        line: {
            symbolSize: 6,
            lineWidth: 2,
            smooth: true
        },
        colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666'],
        months: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
        data: [
            { name: '总店', data: [120, 132, 101, 134, 90, 230, 210, 182, 191, 234, 290, 330] },
            { name: '分店A', data: [220, 182, 191, 234, 290, 330, 310, 201, 154, 190, 330, 410] },
            { name: '分店B', data: [150, 232, 201, 154, 190, 330, 410, 320, 332, 301, 334, 390] },
            { name: '分店C', data: [320, 332, 301, 334, 390, 330, 320, 332, 301, 334, 390, 420] }
        ]
    },

    // 服务项目分布图配置
    serviceDistribution: {
        title: {
            text: '服务项目营收分布',
            fontSize: 16,
            fontWeight: 'bold',
            color: '#303133'
        },
        pie: {
            radius: ['35%', '65%'],
            center: ['50%', '50%'],
            emphasis: {
                label: {
                    fontSize: 18,
                    fontWeight: 'bold'
                }
            }
        },
        legend: {
            orient: 'vertical',
            left: '8%',
            top: 'middle'
        },
        colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272'],
        data: [
            { name: '面部护理', value: 1048 },
            { name: '身体按摩', value: 735 },
            { name: '足疗', value: 580 },
            { name: 'SPA', value: 484 },
            { name: '美甲', value: 300 },
            { name: '美发', value: 200 }
        ]
    }
} 